package net.guoyixian.admin.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

import net.guoyixian.admin.mapper.SysRoleMapper;
import net.guoyixian.admin.pojo.SysRole;

@Service
public class SysRoleService {

	@Autowired
	private SysRoleMapper sysRoleMapper;
	/**
	 * 角色页面
	 * @param bounds
	 * @return
	 */
	public PageList<SysRole> queryList(PageBounds bounds) {
		return sysRoleMapper.queryList(bounds);
	}
	
	/**
	 * 查找所有角色
	 * @return
	 */
	public List<SysRole> queryAll() {
		return sysRoleMapper.queryList();
	}

}
